package com.adk.backend.mapper;

import com.adk.backend.entity.LxCDelivery;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

/**
 * 派送单列表Mapper
 */
@Mapper
public interface CDeliveryMapper extends BaseMapper<LxCDelivery> {
    
    /**
     * 查询派送单列表（带客户信息和账单信息）
     */
    List<Map<String, Object>> selectDeliveryListWithCustomerAndBilling(@Param("params") Map<String, Object> params);
    
    /**
     * 根据ID查询派送单详情（带客户信息）
     */
    Map<String, Object> selectDeliveryDetailById(@Param("id") Long id);
    
    /**
     * 查询账单编辑信息
     */
    Map<String, Object> selectBillingInfo(@Param("deliveryId") Long deliveryId);
}

